package com.chase.springboot.elasticsearch;

import com.chase.springboot.model.vo.PostVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface EsPostRepository extends ElasticsearchRepository<PostVO, String> {
    Page<PostVO> findByTitleOrUsername(String title, String username, Pageable page);
}
